package com.cskaoyan.service;

import com.cskaoyan.bean.ListData;
import com.cskaoyan.bean.OptionsVo;
import com.cskaoyan.bean.Role;
import com.cskaoyan.bean.bo.PermissionsBo;
import com.cskaoyan.bean.vo.PermissionsVo;

import java.util.List;

/**
 * @author
 * @date 2020/12/6 19:40
 */
public interface RoleService {
    ListData<Role> queryRoleList(Integer page, Integer limit, String sort, String order, String name);

    Role insertRole(Role role);

    void updateRole(Role role);

    void deleteRole(Role role);

    List<OptionsVo> selectValueAndLable();

    int countManager(Integer id);

    PermissionsVo selectPermissions(String roleId);

    void deletePermission(PermissionsBo permissionsBo);

    void insertPermission(PermissionsBo permissionsBo);
}
